﻿using System.Collections.Generic;


namespace IDEAMS.model.etalon
{
    public class EtalonViewModel : ViewModelBase
    {
        public EtalonViewModel()
        {

        }

        public EtalonViewModel(Etalon etalon)
        {
            this.name = etalon.name;
            this.minValue = etalon.minValue;
            this.maxValue = etalon.maxValue;
            this.count = etalon.count;
            this.values = new List<double>();
            foreach (var item in etalon.values)
            {
                values.Add(item);
            }
        }

        private string m_name;
        public string name
        {
            get { return m_name; }
            set
            {
                m_name = value;
                NotifyPropertyChanged();
            }
        }

        private double m_minValue;
        public double minValue
        {
            get { return m_minValue; }
            set
            {
                m_minValue = value;
                NotifyPropertyChanged();
            }
        }

        private double m_maxValue;
        public double maxValue
        {
            get { return m_maxValue; }
            set
            {
                m_maxValue = value;
                NotifyPropertyChanged();
            }
        }

        private int m_count;
        public int count
        {
            get { return m_count; }
            set
            {
                m_count = value;
                NotifyPropertyChanged();
            }
        }

        public List<double> values { get; set; }
    }
}
